<?php
	$tool_buttons = array
	(
		'list_button' => array
		(
			'image'=>'btnListLarge.gif', 
			'text'=>LANG_LIST, 
			'url'=>'/'.$this->name.'/index/'
		),
			
		'edit_button' => array
		(
			'image'=>'btnEditLarge.gif', 
			'text'=>LANG_EDIT, 
			'url'=>'/'.$this->name.'/edit/'.$this->data[$this->name][id]
		)
	);

	$this->helpers->htmlx->MenuText1(LANG_DELEGATIONS.': '.LANG_VIEW, "view.gif");
	$this->helpers->toolbars->Toolbar($tool_buttons);
	echo "<table class='eva'>";
		$this->helpers->htmlx->inputTextRow(LANG_TO_USER, '', $this->data[$this->name][user_login_to],'disabled="disabled"');
		if (sizeof($this->data[roles])!=0)
		{
			$this->helpers->htmlx->comboBoxRow(LANG_ROLES, '',$this->data[roles], '','multiple size="/'.(sizeof($this->data[roles])).'/" class="combobox2"  disabled="disabled"  ');
		}
		else
		{
	    	$this->helpers->htmlx->inputTextRow(LANG_URL, '', $this->data[$this->name][url],'disabled="disabled"');
		}
	    $this->helpers->htmlx->inputTextRow(LANG_START_DATE, '', date('d-m-Y H:i', strtotime($this->data[$this->name][datetime_from])),'disabled="disabled"');
	    $this->helpers->htmlx->inputTextRow(LANG_END_DATE, '', date('d-m-Y H:i', strtotime($this->data[$this->name][datetime_to])),'disabled="disabled"');	    
	echo "</table>";
?>